package com.zhen.readinglist.repository;

import com.zhen.readinglist.entity.Book;
import com.zhen.readinglist.entity.Reader;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: zhen-desktop
 * Date: 2019/1/22
 * Time: 20:54
 */
public interface ReadingListRepository extends JpaRepository<Book,Long> {

    List<Book> findByReader(Reader reader);

}
